package com.only4play.importapt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.only4play.importapt.mapper.UserMapper;
import com.only4play.importapt.model.entity.UserEntity;
import com.only4play.importapt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @author liyuncong
 * @version 1.0
 * @file UserServiceImpl
 * @brief UserServiceImpl
 * @details UserServiceImpl
 * @date 2024-05-20
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-05-20               liyuncong          Created
 */

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity>
    implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Boolean batchInsertWithValuesSql(String sql) {
        if (!StringUtils.hasText(sql)) {
            return false;
        }
        return userMapper.batchInsertWithValuesSql(sql);
    }
}
